<?php

require_once APPLICATION_PATH . '/models/DbTable/Reading.php';

/**
 * This is the DbTable class for the ac2_room_zone table.
 */
class Model_DbTable_RoomZone extends Zend_Db_Table_Abstract
{
    /** Table name */
    protected $_name    = 'ac2_room_zone';
    
    protected $_referenceMap    = array(
        'Room' => array(
            'columns'           => array('room_id'),
            'refTableClass'     => 'Model_DbTable_Room',
            'refColumns'        => array('room_id')           
        ),
        'Reading' => array(
          'columns'           => array('zone_id'),
          'refTableClass'     => 'Model_DbTable_Reading',
          'refColumns'        => array('zone_id')           
      ),
    );
    
    /**
     * The primary key column or columns.
     * A compound key should be declared as an array.
     * You may declare a single-column primary key
     * as a string.
     *
     * @var mixed
     */
    protected $_primary = array('room_id', 'zone_id');
}
